<?php
namespace Cubemarketing\Model;

class Article
{
    public $id;
    public $code;
    public $name;
    public $libelleCaisse;
    public $price;
    public $active;
    public $isMenu;
    public $idFamily;
    public $idSFamily;
    public $idGamme;
    public $idSGamme;
    public $idContenant;
    public $idProductionQ;
    public $idProductionC;
    public $idFournisseur;
    public $idTVASP;
    public $idTVAEP;
    public $idTemperature;
    public $idZone;
    public $idBio;
    public $dateActif;
    public $dateInactif;
    public $Departement;
    public $Categorie;
    
    public function exchangeArray($data)
    {
        $this->id = (isset($data['idArticle'])) ? $data['idArticle'] : null;
        $this->code = (isset($data['code'])) ? $data['code'] : null;
        $this->name = (isset($data['name'])) ? $data['name'] : null;
        $this->libelleCaisse = (isset($data['libelleCaisse'])) ? $data['libelleCaisse'] : null;
        $this->price = (isset($data['price'])) ? $data['price'] : null;
        $this->active = (isset($data['active'])) ? $data['active'] : null;
        $this->isMenu = (isset($data['isMenu'])) ? $data['isMenu'] : null;
        $this->idFamily = (isset($data['idFamily'])) ? $data['idFamily'] : null;
        $this->idSFamily = (isset($data['idSFamily'])) ? $data['idSFamily'] : null;
        $this->idGamme = (isset($data['idGamme'])) ? $data['idGamme'] : null;
        $this->idSGamme = (isset($data['idSGamme'])) ? $data['idSGamme'] : null;
        $this->idContenant = (isset($data['idContenant'])) ? $data['idContenant'] : null;
        $this->idProductionQ = (isset($data['idProductionQ'])) ? $data['idProductionQ'] : null;
        $this->idProductionC = (isset($data['idProductionC'])) ? $data['idProductionC'] : null;
        $this->idFournisseur = (isset($data['idFournisseur'])) ? $data['idFournisseur'] : null;
        $this->idTVASP = (isset($data['idTVASP'])) ? $data['idTVASP'] : null;
        $this->idTVAEP = (isset($data['idTVAEP'])) ? $data['idTVAEP'] : null;
        $this->idTemperature = (isset($data['idTemperature'])) ? $data['idTemperature'] : null;
        $this->idZone = (isset($data['idZone'])) ? $data['idZone'] : null;
        $this->idBio = (isset($data['idBio'])) ? $data['idBio'] : null;
        $this->dateActif = (isset($data['dateActif'])) ? $data['dateActif'] : null;
        $this->dateInactif = (isset($data['dateInactif'])) ? $data['dateInactif'] : null;
        $this->Departement = (isset($data['Departement'])) ? $data['Departement'] : null;
        $this->Categorie = (isset($data['Categorie'])) ? $data['Categorie'] : null;
    }
}